using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._ProjectionsandTransformations
{
    /// <summary>
    /// <para>Define Projection</para>
    /// <para>Overwrites the coordinate system information (map projection and datum) stored with a dataset. This tool is intended for datasets that have an unknown or incorrect coordinate system defined.</para>
    /// <para>覆盖与数据集一起存储的坐标系信息（地图投影和基准面）。此工具适用于定义了未知或不正确坐标系的数据集。</para>
    /// </summary>    
    [DisplayName("Define Projection")]
    public class DefineProjection : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DefineProjection()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset or Feature Class</para>
        /// <para>The dataset or feature class whose projection is to be defined.</para>
        /// <para>要定义其投影的数据集或要素类。</para>
        /// </param>
        /// <param name="_coor_system">
        /// <para>Coordinate System</para>
        /// <para>The coordinate system to be applied to the input. The default value is set based on the Output Coordinate System environment setting.</para>
        /// <para>要应用于输入的坐标系。默认值是根据输出坐标系环境设置设置的。</para>
        /// </param>
        public DefineProjection(object _in_dataset, object _coor_system)
        {
            this._in_dataset = _in_dataset;
            this._coor_system = _coor_system;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Define Projection";

        public override string CallName => "management.DefineProjection";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_dataset, _coor_system, _out_dataset];

        /// <summary>
        /// <para>Input Dataset or Feature Class</para>
        /// <para>The dataset or feature class whose projection is to be defined.</para>
        /// <para>要定义其投影的数据集或要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset or Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Coordinate System</para>
        /// <para>The coordinate system to be applied to the input. The default value is set based on the Output Coordinate System environment setting.</para>
        /// <para>要应用于输入的坐标系。默认值是根据输出坐标系环境设置设置的。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Coordinate System")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _coor_system { get; set; }


        /// <summary>
        /// <para>Update Input Dataset or Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Update Input Dataset or Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        public DefineProjection SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}